package com.trainoo.hystrixturbine;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.turbine.stream.EnableTurbineStream;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableTurbineStream
@EnableDiscoveryClient
@SpringBootApplication
public class HystrixTurbineAmqpApplication {

    /**
     * 聚合监控 — 通过消息代理收集聚合
     *
     * TODO : 目前还有问题，启动不起来。 eurake-server 里面状态一直显示为 starting
     *
     * http://localhost:12001/turbine.stream
     */
    public static void main(String[] args) {
        SpringApplication.run(HystrixTurbineAmqpApplication.class, args);
    }

}
